package top.jiangqiang.qianyi.common.constants.http;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import top.jiangqiang.qianyi.common.base.http.ErrorStatus;

/**
 * @Date 2023/10/19 17:28
 * @Author Jiangqiang
 */
@Getter
@Slf4j
@AllArgsConstructor
public enum Error404Status implements ErrorStatus {

    //404 找不到资源
    NOT_FOUND(100, "找不到资源"),
    ;

    //业务状态码
    private final int code;
    private final String message;

    @Override
    public int getRawStatusCode() {
        return 404;
    }

    @Override
    public HttpStatus getHttpStatus() {
        return HttpStatus.NOT_FOUND;
    }
}
